package com.michael.study.customview

import android.app.Application
import android.util.Log

class App : Application(), Thread.UncaughtExceptionHandler {

    override fun onCreate() {
        super.onCreate()
        Thread.setDefaultUncaughtExceptionHandler(this)
    }

    override fun uncaughtException(t: Thread, e: Throwable) {
        Log.d("lgq", "uncaughtException: " + e.message)
    }
}